import instance from '@/request/request'

/**
 * 获取项目的抽取结果信息
 * @returns {*}
 */
export const  GetExtractResultByProjectId=(projectId)=>{
  return instance({
    url:`/api/extractResult/getExtractResultInfo/${projectId}`,
    method:'get'
  })
}
/**
 * 重新抽取专家信息
 * @param id
 * @returns {*}
 */
export const  reExtract=(id)=>{
  return instance({
    url:`/api/extractResult/reExtract/${id}`,
    method:'put'
  })
}
/**
 * 取消抽取专家信息
 * @param id
 * @returns {*}
 */
export const  cancelExtractResult=(id)=>{
  return instance({
    url:`/api/extractResult/cancelExtractResult/${id}`,
    method:'put'
  })
}
/**
 * 获取
 * @param id 项目id
 * @returns {*}
 * @constructor
 */
export const  CheckIsSupplementary=(id)=>{
  return instance({
    url:`/api/extractResult/checkIsSupplementary/${id}`,
    method:'get'
  })
}
/**
 * 补抽
 * @param data
 * @returns {*}
 * @constructor
 */
export const Supplementary=(data)=>{
  return instance({
    url:`/api/extractResult/supplementary`,
    method:'post',
    data
  })
}
/**
 * 催促专家
 * @param project
 * @param id
 * @returns {*}
 */
export const urgedExpert=(project,id)=>{
  return instance({
    url: `/api/extractResult/urged/${project}/${id}`,
    method:'post'
  })
}

export const scoreExpert=(data)=>{
  return instance({
    url: `/api/extractResult/scoreExpert`,
    method:'post',
    data
  })
}
